import request from '@/router/axios'

export function fetchEimsSupplierStockList(query) {
  return request({
    url: '/eims/supplierStock/page',
    method: 'get',
    params: query
  })
}

export function getSupplierStockInfoList() {
  return request({
    url: '/eims/supplierStock/getList',
    method: 'get'
  })
}

export function addEimsSupplierStockObj(obj) {
  return request({
    url: '/eims/supplierStock',
    method: 'post',
    data: obj
  })
}

export function getEimsSupplierStockObj(id) {
  return request({
    url: '/eims/supplierStock/' + id,
    method: 'get'
  })
}

export function delEimsSupplierStockObj(id) {
  return request({
    url: '/eims/supplierStock/' + id,
    method: 'delete'
  })
}

export function putEimsSupplierStockObj(obj) {
  return request({
    url: '/eims/supplierStock',
    method: 'put',
    data: obj
  })
}
